package net.realsee.common.enums.wcs.hik;

/**
 * HIK接口异常编码枚举
 *
 * @author 孙正华
 * @since 2023/8/18 14:17
 */
public enum HikRcsOperateErrorEnum {

    SUCCESS("0", "成功"),
    PARAM_ERROR("1", "参数相关的错误"),
    TASK_REPEAT("6", "重复发送，上层系统不需要重发"),
    UNKNOWN_ERROR("99", "其他未知错误，调用失败后，可以重试"),
    TASK_ABSENT("100", "该任务不存在，上层系统不需重发，需要人工介入处理"),
    ;

    private final String code;
    private final String message;

    HikRcsOperateErrorEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
